package com.javaee.mapper.doctor;

import com.javaee.entity.Mzgh;
import com.javaee.entity.Record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DRecordMapper {
    //根据医生id分页查找就诊记录
    List<Record> findByDoctorId(@Param("startIndex") int pageNum, @Param("perPageSize")int pageSize, @Param("dId")int dId);
    int selectCount(int dId);
    //添加就诊记录
    void addRecord(Record record);
    //根据就诊记录id查找记录
    Record findARecordById(int id);
    //根据挂号里uId查用户的cno
    String selectCnoByUId(int uId);
    //根据挂号mId查挂号
     Mzgh selectByMId(int mId);
     //查看全部的mids
    List<Integer> findAllMIds();
}
